.class public Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;
.super Landroid/widget/ArrayAdapter;
.source "MeasuresAdapterWithMap.java"

# interfaces
.implements Lse/emilsjolander/stickylistheaders/StickyListHeadersAdapter;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Landroid/widget/ArrayAdapter<",
        "Llt/noframe/gpsfarmguide/models/MeasureListModel;",
        ">;",
        "Lse/emilsjolander/stickylistheaders/StickyListHeadersAdapter;"
    }
.end annotation


# instance fields
.field private area_units:Ljava/lang/String;

.field protected ctx:Landroid/app/Activity;

.field private db:Llt/noframe/gpsfarmguide/database/DB;

.field private distance_units:Ljava/lang/String;

.field private draw:Llt/noframe/gpsfarmguide/utils/Drawing;

.field protected fields:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Llt/noframe/gpsfarmguide/models/MeasureListModel;",
            ">;"
        }
    .end annotation
.end field

.field private list:Landroid/widget/ListView;

.field myFilter:Landroid/widget/Filter;

.field protected originalFields:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Llt/noframe/gpsfarmguide/models/MeasureListModel;",
            ">;"
        }
    .end annotation
.end field

.field private polygons:Ljava/util/HashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/HashMap<",
            "Ljava/lang/Integer;",
            "Lcom/google/android/gms/maps/model/PolygonOptions;",
            ">;"
        }
    .end annotation
.end field

.field private savedInstanceState:Landroid/os/Bundle;


# direct methods
.method public constructor <init>(Landroid/app/Activity;Ljava/util/List;Landroid/os/Bundle;Landroid/widget/ListView;)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/app/Activity;",
            "Ljava/util/List<",
            "Llt/noframe/gpsfarmguide/models/MeasureListModel;",
            ">;",
            "Landroid/os/Bundle;",
            "Landroid/widget/ListView;",
            ")V"
        }
    .end annotation

    const/4 v0, 0x0

    .line 57
    invoke-direct {p0, p1, v0, p2}, Landroid/widget/ArrayAdapter;-><init>(Landroid/content/Context;ILjava/util/List;)V

    .line 215
    new-instance v0, Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap$2;

    invoke-direct {v0, p0}, Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap$2;-><init>(Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;)V

    iput-object v0, p0, Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;->myFilter:Landroid/widget/Filter;

    .line 58
    iput-object p1, p0, Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;->ctx:Landroid/app/Activity;

    .line 59
    iput-object p2, p0, Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;->fields:Ljava/util/List;

    .line 60
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0, p2}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V

    iput-object v0, p0, Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;->originalFields:Ljava/util/List;

    .line 61
    iput-object p4, p0, Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;->list:Landroid/widget/ListView;

    .line 62
    new-instance p2, Llt/noframe/gpsfarmguide/utils/Drawing;

    invoke-direct {p2}, Llt/noframe/gpsfarmguide/utils/Drawing;-><init>()V

    iput-object p2, p0, Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;->draw:Llt/noframe/gpsfarmguide/utils/Drawing;

    .line 63
    new-instance p2, Ljava/util/HashMap;

    invoke-direct {p2}, Ljava/util/HashMap;-><init>()V

    iput-object p2, p0, Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;->polygons:Ljava/util/HashMap;

    .line 64
    iput-object p3, p0, Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;->savedInstanceState:Landroid/os/Bundle;

    .line 66
    invoke-static {p1}, Llt/noframe/gpsfarmguide/utils/Preferences;->getDistanceUnit(Landroid/content/Context;)Ljava/lang/String;

    move-result-object p2

    iput-object p2, p0, Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;->distance_units:Ljava/lang/String;

    .line 67
    invoke-static {p1}, Llt/noframe/gpsfarmguide/utils/Preferences;->getAreaUnit(Landroid/content/Context;)Ljava/lang/String;

    move-result-object p2

    iput-object p2, p0, Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;->area_units:Ljava/lang/String;

    .line 69
    new-instance p2, Llt/noframe/gpsfarmguide/database/DB;

    invoke-direct {p2, p1}, Llt/noframe/gpsfarmguide/database/DB;-><init>(Landroid/content/Context;)V

    iput-object p2, p0, Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;->db:Llt/noframe/gpsfarmguide/database/DB;

    .line 70
    iget-object p1, p0, Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;->ctx:Landroid/app/Activity;

    invoke-static {p1}, Lcom/google/android/gms/maps/MapsInitializer;->initialize(Landroid/content/Context;)I

    return-void
.end method

.method static synthetic access$000(Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;)Landroid/os/Bundle;
    .locals 0

    .line 39
    iget-object p0, p0, Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;->savedInstanceState:Landroid/os/Bundle;

    return-object p0
.end method

.method static synthetic access$100(Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;Lcom/google/android/gms/maps/GoogleMap;Llt/noframe/gpsfarmguide/models/MeasureListModel;)V
    .locals 0

    .line 39
    invoke-direct {p0, p1, p2}, Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;->addPolygon(Lcom/google/android/gms/maps/GoogleMap;Llt/noframe/gpsfarmguide/models/MeasureListModel;)V

    return-void
.end method

.method static synthetic access$200(Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;)Landroid/widget/ListView;
    .locals 0

    .line 39
    iget-object p0, p0, Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;->list:Landroid/widget/ListView;

    return-object p0
.end method

.method private addPolygon(Lcom/google/android/gms/maps/GoogleMap;Llt/noframe/gpsfarmguide/models/MeasureListModel;)V
    .locals 3

    .line 155
    invoke-virtual {p1}, Lcom/google/android/gms/maps/GoogleMap;->clear()V

    .line 157
    iget-object v0, p0, Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;->polygons:Ljava/util/HashMap;

    invoke-virtual {p2}, Llt/noframe/gpsfarmguide/models/MeasureListModel;->getId()I

    move-result v1

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 158
    iget-object v0, p0, Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;->polygons:Ljava/util/HashMap;

    invoke-virtual {p2}, Llt/noframe/gpsfarmguide/models/MeasureListModel;->getId()I

    move-result p2

    invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p2

    invoke-virtual {v0, p2}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p2

    check-cast p2, Lcom/google/android/gms/maps/model/PolygonOptions;

    invoke-virtual {p1, p2}, Lcom/google/android/gms/maps/GoogleMap;->addPolygon(Lcom/google/android/gms/maps/model/PolygonOptions;)Lcom/google/android/gms/maps/model/Polygon;

    move-result-object p2

    goto :goto_0

    .line 160
    :cond_0
    iget-object v0, p0, Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;->draw:Llt/noframe/gpsfarmguide/utils/Drawing;

    invoke-virtual {p2}, Llt/noframe/gpsfarmguide/models/MeasureListModel;->getPoints()Ljava/util/List;

    move-result-object v1

    invoke-virtual {v0, v1}, Llt/noframe/gpsfarmguide/utils/Drawing;->loadField(Ljava/util/List;)Lcom/google/android/gms/maps/model/PolygonOptions;

    move-result-object v0

    .line 161
    invoke-virtual {p1, v0}, Lcom/google/android/gms/maps/GoogleMap;->addPolygon(Lcom/google/android/gms/maps/model/PolygonOptions;)Lcom/google/android/gms/maps/model/Polygon;

    move-result-object v1

    .line 162
    iget-object v2, p0, Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;->polygons:Ljava/util/HashMap;

    invoke-virtual {p2}, Llt/noframe/gpsfarmguide/models/MeasureListModel;->getId()I

    move-result p2

    invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p2

    invoke-virtual {v2, p2, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-object p2, v1

    .line 164
    :goto_0
    invoke-static {p1, p2}, Llt/noframe/gpsfarmguide/utils/CameraFunctions;->fixZoom(Lcom/google/android/gms/maps/GoogleMap;Lcom/google/android/gms/maps/model/Polygon;)V

    return-void
.end method

.method private setMap(Landroid/view/View;Llt/noframe/gpsfarmguide/models/MeasureListModel;)V
    .locals 1

    .line 85
    new-instance v0, Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap$1;

    invoke-direct {v0, p0, p1, p2}, Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap$1;-><init>(Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;Landroid/view/View;Llt/noframe/gpsfarmguide/models/MeasureListModel;)V

    .line 114
    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    return-void
.end method


# virtual methods
.method protected generateView(ILandroid/view/View;)Landroid/view/View;
    .locals 7

    .line 124
    iget-object v0, p0, Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;->ctx:Landroid/app/Activity;

    const-string v1, "layout_inflater"

    invoke-virtual {v0, v1}, Landroid/app/Activity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/LayoutInflater;

    .line 125
    invoke-virtual {p0, p1}, Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;->getItem(I)Llt/noframe/gpsfarmguide/models/MeasureListModel;

    move-result-object p1

    if-nez p2, :cond_0

    const p2, 0x7f0c0073

    const/4 v1, 0x0

    .line 127
    invoke-virtual {v0, p2, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    .line 128
    invoke-direct {p0, p2, p1}, Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;->setMap(Landroid/view/View;Llt/noframe/gpsfarmguide/models/MeasureListModel;)V

    :cond_0
    if-eqz p1, :cond_1

    .line 131
    invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/google/android/gms/maps/GoogleMap;

    const v1, 0x7f09018c

    .line 132
    invoke-virtual {p2, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    .line 133
    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/models/MeasureListModel;->getName()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const v1, 0x7f09020b

    .line 135
    invoke-virtual {p2, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    .line 136
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v3, p0, Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;->ctx:Landroid/app/Activity;

    const v4, 0x7f11002f

    invoke-virtual {v3, v4}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v3, " "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/models/MeasureListModel;->getParameter2()D

    move-result-wide v4

    iget-object v6, p0, Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;->area_units:Ljava/lang/String;

    invoke-static {v4, v5, v6}, Llt/noframe/gpsfarmguide/utils/Mathematics;->convertArea(DLjava/lang/String;)D

    move-result-wide v4

    invoke-static {v4, v5}, Llt/noframe/gpsfarmguide/utils/Utils;->smartRounding(D)D

    move-result-wide v4

    invoke-virtual {v2, v4, v5}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v3, p0, Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;->area_units:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const v1, 0x7f090279

    .line 138
    invoke-virtual {p2, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    .line 139
    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/models/MeasureListModel;->getUniqueId()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    if-eqz v0, :cond_1

    .line 141
    invoke-direct {p0, v0, p1}, Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;->addPolygon(Lcom/google/android/gms/maps/GoogleMap;Llt/noframe/gpsfarmguide/models/MeasureListModel;)V

    :cond_1
    return-object p2
.end method

.method public getCount()I
    .locals 1

    .line 192
    iget-object v0, p0, Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;->fields:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    return v0
.end method

.method public getFilter()Landroid/widget/Filter;
    .locals 1

    .line 212
    iget-object v0, p0, Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;->myFilter:Landroid/widget/Filter;

    return-object v0
.end method

.method public getHeaderId(I)J
    .locals 2

    .line 259
    iget-object v0, p0, Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;->fields:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Llt/noframe/gpsfarmguide/models/MeasureListModel;

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/models/MeasureListModel;->getGroupId()I

    move-result p1

    int-to-long v0, p1

    return-wide v0
.end method

.method public getHeaderView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 2

    .line 248
    check-cast p2, Landroid/widget/TextView;

    if-nez p2, :cond_0

    .line 250
    iget-object p2, p0, Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;->ctx:Landroid/app/Activity;

    invoke-static {p2}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object p2

    const v0, 0x7f0c006f

    const/4 v1, 0x0

    invoke-virtual {p2, v0, p3, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object p2

    check-cast p2, Landroid/widget/TextView;

    .line 253
    :cond_0
    iget-object p3, p0, Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;->db:Llt/noframe/gpsfarmguide/database/DB;

    iget-object v0, p0, Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;->fields:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Llt/noframe/gpsfarmguide/models/MeasureListModel;

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/models/MeasureListModel;->getGroupId()I

    move-result p1

    invoke-virtual {p3, p1}, Llt/noframe/gpsfarmguide/database/DB;->getGroupName(I)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p2, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    return-object p2
.end method

.method public bridge synthetic getItem(I)Ljava/lang/Object;
    .locals 0

    .line 39
    invoke-virtual {p0, p1}, Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;->getItem(I)Llt/noframe/gpsfarmguide/models/MeasureListModel;

    move-result-object p1

    return-object p1
.end method

.method public getItem(I)Llt/noframe/gpsfarmguide/models/MeasureListModel;
    .locals 1

    .line 197
    iget-object v0, p0, Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;->fields:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Llt/noframe/gpsfarmguide/models/MeasureListModel;

    return-object p1
.end method

.method public getItemId(I)J
    .locals 2

    .line 202
    invoke-virtual {p0, p1}, Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;->getItem(I)Llt/noframe/gpsfarmguide/models/MeasureListModel;

    move-result-object p1

    invoke-virtual {p1}, Ljava/lang/Object;->hashCode()I

    move-result p1

    int-to-long v0, p1

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 0

    .line 120
    invoke-virtual {p0, p1, p2}, Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;->generateView(ILandroid/view/View;)Landroid/view/View;

    move-result-object p1

    return-object p1
.end method

.method public hasStableIds()Z
    .locals 1

    const/4 v0, 0x1

    return v0
.end method

.method public removeItem(I)V
    .locals 3

    const/4 v0, 0x0

    const/4 v1, 0x0

    .line 172
    :goto_0
    iget-object v2, p0, Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;->fields:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v2

    if-ge v1, v2, :cond_1

    .line 173
    iget-object v2, p0, Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;->fields:Ljava/util/List;

    invoke-interface {v2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Llt/noframe/gpsfarmguide/models/MeasureListModel;

    invoke-virtual {v2}, Llt/noframe/gpsfarmguide/models/MeasureListModel;->getId()I

    move-result v2

    if-ne p1, v2, :cond_0

    .line 175
    iget-object p1, p0, Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;->fields:Ljava/util/List;

    invoke-interface {p1, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Llt/noframe/gpsfarmguide/models/MeasureListModel;

    goto :goto_1

    :cond_0
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_1
    const/4 p1, 0x0

    :goto_1
    if-nez p1, :cond_2

    .line 179
    invoke-virtual {p0}, Landroid/widget/ArrayAdapter;->notifyDataSetChanged()V

    return-void

    .line 181
    :cond_2
    :goto_2
    iget-object v1, p0, Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;->originalFields:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    if-ge v0, v1, :cond_4

    .line 182
    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/models/MeasureListModel;->getId()I

    move-result v1

    iget-object v2, p0, Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;->originalFields:Ljava/util/List;

    invoke-interface {v2, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Llt/noframe/gpsfarmguide/models/MeasureListModel;

    invoke-virtual {v2}, Llt/noframe/gpsfarmguide/models/MeasureListModel;->getId()I

    move-result v2

    if-ne v1, v2, :cond_3

    .line 183
    iget-object v1, p0, Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;->originalFields:Ljava/util/List;

    invoke-interface {v1, v0}, Ljava/util/List;->remove(I)Ljava/lang/Object;

    goto :goto_3

    :cond_3
    add-int/lit8 v0, v0, 0x1

    goto :goto_2

    .line 186
    :cond_4
    :goto_3
    iget-object v0, p0, Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;->fields:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->remove(Ljava/lang/Object;)Z

    .line 187
    invoke-virtual {p0}, Landroid/widget/ArrayAdapter;->notifyDataSetChanged()V

    return-void
.end method
